package sys.model;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * Created by shugen on 2017/1/18.
 */
public class Questionnaire implements Serializable {
    private Integer id;  //id
    private String title; //标题
    private String summary; //  概述
    private Date ctime;   //创建时间
    private int userid;   //创建者
    private boolean start;  //          启用？   1启用  0不启用
    private boolean pagestart;      //是否 在首页推广   1是  0  否
    private boolean mailstart;     //是否 邮件推广   1是  0  否
    private boolean wechatstart;  //是否 微信推广   1是  0  否
    private List<Question> questions;//问题列表
    public Questionnaire(){}

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public List<Question> getQuestions() {
        return questions;
    }

    public void setQuestions(List<Question> questions) {
        this.questions = questions;
    }

    public boolean getStart() {
        return start;
    }

    public void setStart(boolean start) {
        this.start = start;
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public boolean isPagestart() {
        return pagestart;
    }

    public void setPagestart(boolean pagestart) {
        this.pagestart = pagestart;
    }

    public boolean isMailstart() {
        return mailstart;
    }

    public void setMailstart(boolean mailstart) {
        this.mailstart = mailstart;
    }

    public boolean isWechatstart() {
        return wechatstart;
    }

    public void setWechatstart(boolean wechatstart) {
        this.wechatstart = wechatstart;
    }

    public String toString() {
        return "问卷{" +
                "id=" + id +
                ", 标题='" + title + '\'' +
                ", 概述='" + summary + '\'' +
                ", 是否启用='" + start + '\'' +
                ", 页面推送='" + pagestart + '\'' +
                ", 邮件推送='" + mailstart + '\'' +
                ", 微信推送='" + wechatstart + '\'' +
                ", 创建时间='" + ctime + '\'' +
                ", 创建者id='" + userid + '\'' +
                ", 题目=" + questions +"\n"+
                '}';
    }
}
